<template>
  <div class="container">
    <div class="box">
      <header class="header">头部</header>
      <main class="content">内容</main>
    </div>
    <footer class="footer">
      <van-tabbar v-model="active">
  <van-tabbar-item icon="home-o">标签</van-tabbar-item>
  <van-tabbar-item icon="apps-o">标签</van-tabbar-item>
  <van-tabbar-item icon="shopping-cart-o">标签</van-tabbar-item>
  <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
</van-tabbar>
    </footer>
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    overflow: auto;

    display: flex;
    flex-direction: column;

    .header {
      height: 50px;
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 50px;
    background: #8e8e8e;
  }
}
</style>
